<template>
  <div>
    <el-container>
      <el-aside width="240px">
        <div style="margin: 20px 0 40px 0">
          <h2>卷上天医疗后台</h2>
        </div>
        <template>
          <!-- 子组件 -->
          <leftbar />
        </template>
      </el-aside>
      <el-container>
        <el-header>
          <!-- 子组件 -->
          <headdrop />
        </el-header>
        <el-main>
          <!-- 子组件 -->
          <maincenter />
          <!-- 子路由挂载 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import leftbar from "./ui/leftbar";
import maincenter from "./ui/maincenter";
import headdrop from "./ui/headdrop";
import { getAdminYhApi } from "@/api/adminApi/yhApi";
export default {
  components: {
    leftbar,
    maincenter,
    headdrop,
  },
};
</script>

<style lang="scss" scoped>
@import "./scss/index.scss";
</style>